package com.cskaoyan.catmall.model.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 创建日期: 2022-01-07-13-27
 * author : LL
 * description: 优惠券VO
 */
@NoArgsConstructor
@Data
public class ItemOfCouponListVo {

    private Integer id;
    private String name;
    private String desc;
    private String tag;
    private Integer total;
    private Integer discount;
    private Integer min;
    private Integer limit;
    private Integer type;
    private Integer status;
    private Integer goodsType;
    private List<Integer> goodsValue;
    private Integer timeType;
    private Integer days;
    private String startTime;
    private String endTime;
    private String addTime;
    private String updateTime;
    private Boolean deleted;
    private String code;


    private Integer deletedNum;

    public void setDeletedNum(Integer deletedNum) {
//        this.deletedNum = deletedNum;
        if (deletedNum == 0){
            this.deleted = false;
        }else this.deleted = true;
    }
}